<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : HotelProperties
    Created on : 16 juil. 2008, 22:53:45
    Author     : loicpark
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <webuijsf:page id="page1">
            <webuijsf:html id="html1">
                <webuijsf:head id="head1">
                    <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                </webuijsf:head>
                <webuijsf:body id="body1" style="-rave-layout: grid">
                    <webuijsf:form id="form1" style="height: 360px; left: 0px; top: 0px; position: relative; width: 80%">
                        <webuijsf:panelLayout id="lopHotelProperties" style="height: 310px; left: 48px; top: 48px; position: absolute; width: 694px; -rave-layout: grid">
                            <webuijsf:label for="tbHotelName" id="label1" style="left: 24px; top: 72px; position: absolute" text="Nom :"/>
                            <webuijsf:staticText id="titleHotelProperties"
                                style="color: blue; font-size: 14px; font-weight: bolder; left: 24px; top: 24px; position: absolute" text="Fiche de l'hotel"/>
                            <webuijsf:textField binding="#{screens$HotelProperties.tbHotelName}" columns="30" id="tbHotelName" required="true" style="left: 144px; top: 72px; position: absolute"/>
                            <webuijsf:label for="ddlZipcode" id="label2" style="left: 24px; top: 192px; position: absolute" text="Code Postal - Ville :"/>
                            <webuijsf:label for="taDescription" id="label3" style="left: 384px; top: 72px; position: absolute" text="Description :"/>
                            <webuijsf:textField binding="#{screens$HotelProperties.tbAddr2}" columns="30" id="tbAddr2" style="left: 144px; top: 120px; position: absolute"/>
                            <webuijsf:textField binding="#{screens$HotelProperties.tbAddr3}" columns="30" id="tbAddr3" style="left: 144px; top: 144px; position: absolute"/>
                            <webuijsf:label for="tbAddr1" id="label8" style="left: 24px; top: 96px; position: absolute" text="Adresse :"/>
                            <webuijsf:textField binding="#{screens$HotelProperties.tbAddr1}" columns="30" id="tbAddr1" required="true" style="left: 144px; top: 96px; position: absolute"/>
                            <webuijsf:label for="taSrvEquip" id="label9" style="left: 384px; top: 168px; position: absolute" text="Services et équipements :"/>
                            <webuijsf:dropDown binding="#{screens$HotelProperties.ddlZipcode}" id="ddlZipcode" items="#{ApplicationBean.zipcode}"
                                required="true" style="left: 144px; top: 192px; position: absolute"/>
                            <webuijsf:textArea binding="#{screens$HotelProperties.taDescription}" columns="45" id="taDescription" rows="3" style="left: 384px; top: 96px; position: absolute"/>
                            <webuijsf:textArea binding="#{screens$HotelProperties.taSrvEquip}" columns="45" id="taSrvEquip" rows="5" style="left: 384px; top: 192px; position: absolute"/>
                            <webuijsf:button actionExpression="#{screens$HotelProperties.btEnregistrerHotel_action}" id="btEnregistrerHotel" mini="true"
                                primary="true" style="height: 23px; left: 23px; top: 240px; position: absolute; width: 119px" text="Enregistrer"/>
                            <webuijsf:alert binding="#{screens$HotelProperties.alertMessages}" id="alertMessages" style="height: 69px; left: 432px; top: 0px; position: absolute; width: 237px"/>
                            <webuijsf:hyperlink binding="#{screens$HotelProperties.lnkHotelList}" id="lnkHotelList"
                                style="position: absolute; left: 384px; top: 288px" text="Retour à la liste des hotels" url="http://localhost:8080/CentralHotelUIWeb/uiweb/screens/HotelList.jsp"/>
                            <webuijsf:hyperlink id="hyperlink1" style="position: absolute; left: 528px; top: 288px" text="Consulter mon compte" url="http://localhost:8080/CentralHotelUIWeb/uiweb/screens/HotelManagerAccount.jsp"/>
                        </webuijsf:panelLayout>
                    </webuijsf:form>
                    <webuijsf:form id="form2" style="height: 536px; width: 768px">
                        <webuijsf:panelLayout id="lopRoomList" style="height: 310px; left: 48px; top: 360px; position: absolute; width: 694px; -rave-layout: grid">
                            <webuijsf:tabSet id="tabSet1" style="height: 261px; left: 0px; top: 24px; position: absolute; width: 693px">
                                <webuijsf:tab actionExpression="#{screens$HotelProperties.tab2_action}" id="tab2" text="Liste des chambres">
                                    <webuijsf:panelLayout id="lopTab2" style="height: 203px; position: relative; width: 100%; -rave-layout: grid">
                                        <webuijsf:table binding="#{screens$HotelProperties.tableRoomList}" id="tableRoomList" paginationControls="true"
                                            style="height: 120px; width: 672px" title="Chambres" width="672">
                                            <webuijsf:tableRowGroup binding="#{screens$HotelProperties.tableRowRoomList}" emptyDataMsg="Aucune chambre"
                                                id="tableRowRoomList" rows="5" sourceData="#{SessionBean.roomByHotel}" sourceVar="currentRow">
                                                <webuijsf:tableColumn headerText="Nom hotel" height="17" id="tableColumn1" sort="hotelName">
                                                    <webuijsf:staticText id="staticText3" text="#{currentRow.value['hotelName']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="N° Chambre" height="17" id="tableColumn2" sort="number">
                                                    <webuijsf:staticText id="staticText4" text="#{currentRow.value['number']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Type" height="17" id="tableColumn3" sort="roomType">
                                                    <webuijsf:staticText id="staticText5" text="#{currentRow.value['roomType']}"/>
                                                </webuijsf:tableColumn>
                                                <webuijsf:tableColumn headerText="Editer" height="17" id="tableColumn4" width="7">
                                                    <webuijsf:button actionExpression="#{screens$HotelProperties.btEditRoom_action}"
                                                        binding="#{screens$HotelProperties.btEditRoom}" id="btEditRoom" mini="true" primary="true" text="..."/>
                                                </webuijsf:tableColumn>
                                            </webuijsf:tableRowGroup>
                                        </webuijsf:table>
                                    </webuijsf:panelLayout>
                                </webuijsf:tab>
                            </webuijsf:tabSet>
                            <webuijsf:button actionExpression="#{screens$HotelProperties.btAddRoomToHotel_action}"
                                binding="#{screens$HotelProperties.btAddRoomToHotel}" id="btAddRoomToHotel" mini="true" primary="true"
                                style="height: 23px; left: 23px; top: 0px; position: absolute; width: 119px" text="Ajouter une chambre"/>
                        </webuijsf:panelLayout>
                    </webuijsf:form>
                </webuijsf:body>
            </webuijsf:html>
        </webuijsf:page>
    </f:view>
</jsp:root>
